<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" template="../../templates/ui.xhtml">

	<ui:define name="content">

		<h:form enctype="multipart/form-data" id="football">
			<p:fileUpload fileUploadListener="#{footballBean.handleFileUpload}"
				mode="advanced"
				update=":headerform:growl :football:footballTable :football"
				auto="true" sizeLimit="100000" allowTypes="/(\.|\/)(dat)$/" />

			<p:commandButton actionListener="#{footballBean.show}" value="Göster"
				id="footballButton" update=":football"
				rendered="#{footballBean.footballList != null}" />

			<p:dataTable value="#{footballBean.resultFootballList}"
				rendered="#{footballBean.resultFootballList != null}" var="football"
				id="footballTable">

				<f:facet name="header">
					<h:outputText value="Takım Farkı en az Pozitif Bilgileri" />
				</f:facet>

				<p:column>
					<f:facet name="header">
						<h:outputText value="Takım İsmi" />
					</f:facet>
					<h:outputText value="#{football.team}" />
				</p:column>

				<p:column>
					<f:facet name="header">
						<h:outputText value="Fark" />
					</f:facet>
					<h:outputText value="#{football.a - football.f}" />
				</p:column>

			</p:dataTable>
		</h:form>
	</ui:define>



</ui:composition>
